package com.unidt.www.module.third.doc.controller.admin;

import com.unidt.www.framework.common.pojo.CommonResult;
import com.unidt.www.framework.common.pojo.PageResult;
import com.unidt.www.module.third.doc.form.ProjectQueryForm;
import com.unidt.www.module.third.doc.service.IProjectBusInfoService;
import com.unidt.www.module.third.doc.vo.ProjectBusInfoVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author sk
 * @Description:
 * @Date 2022/12/6 14:39
 **/
@Api(tags = "项目申报-文档解析")
@RestController
@RequestMapping("/project/apply")
public class ProjectBusController {

    @Resource
    IProjectBusInfoService iProjectBusInfoService;

    @GetMapping("/queryPage/")
    @ApiOperation("分页查询")
    public CommonResult<PageResult<ProjectBusInfoVo>> queryPage(ProjectQueryForm queryForm) {
        return CommonResult.success(this.iProjectBusInfoService.queryPage(queryForm));
    }

}
